import service from "./index";

// 按需导出
// 页数
export function studentcoursepagecount(data) {
    return service({
        url: "/admin/student/course/page/count",
        method: "get",
        params: data
    })
}


// 列表
export function studentcoursepage(data, page) {
    return service({
        url: "/admin/student/course/page/" + page,
        method: "get",
        params: data
    })
}

// 课程选择框
export function coursenames(data) {
    return service({
        url: "/admin/course/names",
        method: "get",
        params: data
    })
}

// 学生选择框
export function studentnames(data) {
    return service({
        url: "/admin/student/names",
        method: "get",
        params: data
    })
}

// 增加
export function adminstudentcourse(data) {
    return service({
        url: "/admin/student/course",
        method: "post",
        data: data
    })
}

// 详情
export function adminstudentid(id) {
    return service({
        url: `/admin/student/course/ ` + id,
        method: "get",
    })
}

// 修改
export function studentup(data) {
    return service({
        url: `/admin/student/course`,
        method: "put",
        data: data
    })
}

// 删除
export function studentdel(id) {
    return service({
        url: `/admin/student/course/` + id,
        method: "DELETE",
    })
}